<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-4">
        <div class="box box-primary">
            <div class="panel-heading">
                {:__('设置')}
            </div>
            <div class="panel-body">

                <form id="update-form" role="form" data-toggle="validator" method="POST" action="{:url('general.setting/edit')}">
                    {:token()}
                    <input type="hidden" id="c-avatar" name="row[avatar]" value="{$admin.avatar|htmlentities}"/>
                    <div class="box-body box-profile">
                        <div class="form-group">
                            <label  class="control-label">{:__('用户信息openid码')}:</label>
                            <a href="{$path}" target="_blank">
                                <img src="{$path}" alt="获取微信用户的openid" style="width: 100px; height: auto;">
                            </a>
                        </div>
<!--                        <div class="form-group">-->
<!--                            <label  class="control-label">{:__('商家优惠比例（%）')}:</label>-->
<!--                            <input type="number" class="form-control" id="commission" name="row[commission]" value="{$setting.commission|htmlentities}" />-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <button type="submit" class="btn btn-primary">{:__('Submit')}</button>-->
<!--                            <button type="reset" class="btn btn-default">{:__('Reset')}</button>-->
<!--                        </div>-->

                    </div>
                </form>
            </div>
        </div>

    </div>
</div>
